<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>title</title>
  <script src="../vue.js"></script>
</head>
<body>
<div id="app">

  <h1>{{msg}}</h1>
<!--
.lazy - 取代 input 监听 change 事件
.number - 输入字符串转为有效的数字
.trim - 输入首尾空格过滤
-->
  <input type="text" v-model.lazy="lazyT">lazyT
  <br>
  <input type="text" name="number" v-model.number="num">number
  <br>
  <input type="text" name="trim" v-model.trim="trimT"> trimT
</div>

<script>
  Vue.config.productionTip = false;
  const vm = new Vue({
    el:'#app',
    data(){
      return{
        msg:'hello Vue~~~',
        num:'10086',
        lazyT:"",
        trimT:''
      }
    }
  })
</script>

</body>
</html>